<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
   <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title></title>
<script type="text/javascript" >
	function pict(id){
		var field = document.getElementById(id);
		afoto(field.src,id);
	}
	var ventana;
	var cont=0;
	var titulopordefecto = "IMAGEN AMPLIADA";
	function afoto(cual,titulo)
	{
	if(cont==1){ventana.close();ventana=null;}
	if(titulo==null){titulo=titulopordefecto;}
	ventana=window.open('','ventana','resizable=yes,sc rollbars=yes,width=800,height=800');
	ventana.document.write('<html><head><title>' + titulo + 
	'</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' 
	+ cual + '" onLoad="opener.redimensionar(this.width, this.height)"><br><div align="center"><a href="javascript:this.close()">cerrar</a>');
	ventana.document.close();
	cont++;
	}
	function redimensionar(ancho, alto)
	{
	ventana.resizeTo(ancho+12,alto+50);
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
	}
	var fileTypes=["doc",];
	function validaArchivo(what){
		 var source=what.value;
		 var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
		 for (var i=0; i<fileTypes.length; i++) 
			 if (fileTypes[i]==ext) 
				 break;
		 if (i<fileTypes.length){
			 // globalPic.src=source;
		 }else {
		  alert("Ha ingresado un documento invalido\nPorfavor carge un archivo con la extension: ."+fileTypes.join(""));
		
		 }
		}
	function CambiarFormulario(){
	switch(document.forms[0].npisos.selectedIndex){
		case 0: 
			document.forms[0].areacs.value='';
			document.forms[0].areact.value='';
			document.forms[0].areacc.value='';
			document.forms[0].areacs.disabled=true;
			document.forms[0].areact.disabled=true;
			document.forms[0].areacc.disabled=true;
			break;
		case 1: 
			document.forms[0].areact.value='';
			document.forms[0].areacc.value='';
			document.forms[0].areacs.disabled=false;
			document.forms[0].areact.disabled=true;
			document.forms[0].areacc.disabled=true;
			break;
		case 2: 
			document.forms[0].areact.disabled=false;
			document.forms[0].areacs.disabled=false;
			document.forms[0].areacc.value='';
			document.forms[0].areacc.disabled=true;
			break;
		case 3: 
			document.forms[0].areacs.disabled=false;
			document.forms[0].areact.disabled=false;
			document.forms[0].areacc.disabled=false;
			document.forms[0].areacc.value='';
			break;
	}
}
	function validaAprobacion(){
	switch(document.forms[0].estAp.selectedIndex){
		case 0: 
			document.forms[0].observacion.value='NINGUNA';
			document.forms[0].observacion.disabled=true;
			break;
		case 1: 
			document.forms[0].observacion.disabled=false;
			break;
		case 2: 
			document.forms[0].observacion.disabled=false;
			break;
	}
}
	function validarCampos(campo) {
		if(campo.value == ''){
			return;
		}
		if(isNaN(campo.value)){
			alert("Debe introducir un valor numerico");
			campo.style.color='#0099FF';
			campo.focus();
			campo.select();
		}else{
			campo.style.color='blue';
		}	
		
	}
	function validaEnvio(field) {
		var retorno = 0;
		var elementos = document.forms[0].elements.length;
		var vNpisos = document.forms[0].npisos.selectedIndex;
		var source=document.forms[0].archivo.value;
		 var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
		//var obj = document.getElementById("boton01");
		switch(vNpisos){
		case 0: 
			for(i=0; i < elementos; i++){
				if(document.forms[0].elements[i].type == 'text'  || document.forms[0].elements[i].type == 'file'){
					if(document.forms[0].elements[i].name != 'areacs' && document.forms[0].elements[i].name != 'areact' &&
							document.forms[0].elements[i].name != 'areacc'){
						if(document.forms[0].elements[i].value != '' ){
							document.forms[0].elements[i].style.backgroundColor = '#91E148';
						}else{
							document.forms[0].elements[i].style.backgroundColor = '#ff0000';
							document.forms[0].elements[i].style.color = '#ffffff';
							retorno = 1;
							}
					}else{
						document.forms[0].elements[i].style.backgroundColor = '#91E148';
					}
					
				}
				}
			if(document.forms[0].observacion.value != ''){
				document.forms[0].observacion.style.backgroundColor = '#91E148';
			}else{
				document.forms[0].observacion.style.backgroundColor = '#ff0000';
				document.forms[0].observacion.style.color = '#ffffff';
				retorno = 1;
			}
			if(ext == 'doc'){
				document.forms[0].archivo.style.backgroundColor = '#91E148';
			}else{
				alert('Solo se acepta el formato .doc');
				document.forms[0].archivo.style.backgroundColor = '#ff0000';
				document.forms[0].archivo.style.color = '#ffffff';
				retorno = 1;
			}
			if (retorno == 0){
				if(field.name == 'btnGuardar'){
					document.forms[0].action='Informe.do?operacion=registrarinforme';
					document.forms[0].submit();
				}if(field.name == 'btnModificar'){
					document.forms[0].action='Informe.do?operacion=modificarinforme';
					document.forms[0].submit();
				}
			}
			if (retorno == 1){
				alert('Los campos en rojo son obligatorios');
			}
			break;
		case 1: 
			for(i=0; i < elementos; i++){
				if(document.forms[0].elements[i].type == 'text'  || document.forms[0].elements[i].type == 'file'){
					if(document.forms[0].elements[i].name != 'areact' &&
							document.forms[0].elements[i].name != 'areacc'){
						if(document.forms[0].elements[i].value != '' ){
							document.forms[0].elements[i].style.backgroundColor = '#91E148';
						}else{
							document.forms[0].elements[i].style.backgroundColor = '#ff0000';
							document.forms[0].elements[i].style.color = '#ffffff';
							retorno = 1;
							}
					}else{
						document.forms[0].elements[i].style.backgroundColor = '#91E148';
					}
					
				}
				}
			if(document.forms[0].observacion.value != ''){
				document.forms[0].observacion.style.backgroundColor = '#91E148';
			}else{
				document.forms[0].observacion.style.backgroundColor = '#ff0000';
				document.forms[0].observacion.style.color = '#ffffff';
				retorno = 1;
			}
			if(ext == 'doc'){
				document.forms[0].archivo.style.backgroundColor = '#91E148';
			}else{
				alert('Solo se acepta el formato .doc');
				document.forms[0].archivo.style.backgroundColor = '#ff0000';
				document.forms[0].archivo.style.color = '#ffffff';
				retorno = 1;
			}
			if (retorno == 0){
				if(field.name == 'btnGuardar'){
					document.forms[0].action='Informe.do?operacion=registrarinforme';
					document.forms[0].submit();
				}if(field.name == 'btnModificar'){
					document.forms[0].action='Informe.do?operacion=modificarinforme';
					document.forms[0].submit();
				}
			}
			if (retorno == 1){
				alert('Los campos en rojo son obligatorios');
			}
			break;
		case 2: 
			for(i=0; i < elementos; i++){
				if(document.forms[0].elements[i].type == 'text'  || document.forms[0].elements[i].type == 'file'){
					if(	document.forms[0].elements[i].name != 'areacc'){
						if(document.forms[0].elements[i].value != '' ){
							document.forms[0].elements[i].style.backgroundColor = '#91E148';
						}else{
							document.forms[0].elements[i].style.backgroundColor = '#ff0000';
							document.forms[0].elements[i].style.color = '#ffffff';
							retorno = 1;
							}
					}else{
						document.forms[0].elements[i].style.backgroundColor = '#91E148';
					}
					
				}
				}
			if(document.forms[0].observacion.value != ''){
				document.forms[0].observacion.style.backgroundColor = '#91E148';
			}else{
				document.forms[0].observacion.style.backgroundColor = '#ff0000';
				document.forms[0].observacion.style.color = '#ffffff';
				retorno = 1;
			}
			if(ext == 'doc'){
				document.forms[0].archivo.style.backgroundColor = '#91E148';
			}else{
				alert('Solo se acepta el formato .doc');
				document.forms[0].archivo.style.backgroundColor = '#ff0000';
				document.forms[0].archivo.style.color = '#ffffff';
				retorno = 1;
			}
			if (retorno == 0){
				if(field.name == 'btnGuardar'){
					document.forms[0].action='Informe.do?operacion=registrarinforme';
					document.forms[0].submit();
				}if(field.name == 'btnModificar'){
					document.forms[0].action='Informe.do?operacion=modificarinforme';
					document.forms[0].submit();
				}
			}
			if (retorno == 1){
				alert('Los campos en rojo son obligatorios');
			}
			break;
		case 3: 
			for(i=0; i < elementos; i++){
				if(document.forms[0].elements[i].type == 'text'  || document.forms[0].elements[i].type == 'file'){
					if(document.forms[0].elements[i].value != '' ){
						document.forms[0].elements[i].style.backgroundColor = '#91E148';
					}else{
						document.forms[0].elements[i].style.backgroundColor = '#ff0000';
						document.forms[0].elements[i].style.color = '#ffffff';
						retorno = 1;
					}
				}
			}
			if(document.forms[0].observacion.value != ''){
				document.forms[0].observacion.style.backgroundColor = '#91E148';
			}else{
				document.forms[0].observacion.style.backgroundColor = '#ff0000';
				document.forms[0].observacion.style.color = '#ffffff';
				retorno = 1;
			}
			if(ext == 'doc'){
				document.forms[0].archivo.style.backgroundColor = '#91E148';
			}else{
				alert('Solo se acepta el formato .doc');
				document.forms[0].archivo.style.backgroundColor = '#ff0000';
				document.forms[0].archivo.style.color = '#ffffff';
				retorno = 1;
			}
			if (retorno == 0){
				if(field.name == 'btnGuardar'){
					document.forms[0].action='Informe.do?operacion=registrarinforme';
					document.forms[0].submit();
				}if(field.name == 'btnModificar'){
					document.forms[0].action='Informe.do?operacion=modificarinforme';
					document.forms[0].submit();
				}
			}
			if (retorno == 1){
				alert('Los campos en rojo son obligatorios');
			}
			break;
		}
	}
</script>
</head>

<body onload="CambiarFormulario();validaAprobacion();">
<form id="form1" name="form1" encType=multipart/form-data  action="Informe.do">
  <c:set var="info" value="${sessionScope.b_informe}"/>
  <table border="2" cellpadding="8">
    <tr bgcolor="#FF6600">
      <td colspan="3" class="HeaderColor">
       
        <h4><fmt:message key="cu042.titVisInf" /></h4>
      </td>
    </tr>
	<tr bgcolor="#C0C0C0">
      <td colspan="3" class="HeaderColor">
        <fmt:message key="cu042.titReqSol" />   
      </td>
    </tr>
     <tr bgcolor="#DDDDDD" style="vertical-align: top">
 		<td colspan="3">
		<table width="700" border="3" id="tbLiq">
  <tr bgcolor="00D0E8">
  	<th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblCodReq" /> </strong></em></div></th>
    <th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblTipReq" />   </strong></em></div></th>
    <th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblFecReqReq" /> </strong></em></div></th>
    <th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblImaReq" />  </strong></em></div></th>
    <th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblObsReq" />  </strong></em></div></th>
    <th scope="col"><div align="center"><em><strong><fmt:message key="cu042.tblAccReq" />  </strong></em></div></th>
  </tr>
  <c:if test="${sessionScope.l_requisitos != null}">
  	<c:forEach var="req" items="${sessionScope.l_requisitos}">
  		<tr bgcolor="#FFFFFF">
    		<td>${req.intCodigoReq}</td>
    		<td>${req.strTipoRequisito}</td>
    		<td>${req.dtFecCreacion }</td>
    		<td align="center">
    		<img alt="Imagen" src="${req.btImagen}" id="imag${req.intCodigoReq }" height="25" width="30">
    		</td>
    		<td>${req.strObservaciones}</td>
    		<td align="center">
    			<a href="javascript:pict('imag${req.intCodigoReq}');"><fmt:message key="cu042.linkVerIma" /> </a> 
    		</td>
  		</tr>
  	</c:forEach>
  </c:if>
</table>
		</td>
    </tr>
	<tr bgcolor="#C0C0C0">
      <td colspan="3" class="HeaderColor">
        <fmt:message key="cu042.titInfPres" />  
      </td>
    </tr>
    <tr  style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="archivo"> <fmt:message key="cu042.arcInf" /></label>
      </td>
      <td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <input type="file" id="archivo" name="archivo" size="40" onchange="validaArchivo(this);" src="${info.strEscritoInforme}">
      </td>
    </tr>
    <tr >
      <td bgcolor="#DDDDDD" width="12%" nowrap class="LabelColor" style="text-align: right">
        <label for="estinf"> <fmt:message key="cu042.estaInf" /> </label>
      </td>
      <td bgcolor="#DDDDDD" width="50%" class="TitleColor">
        <select name="estinf">
        <c:if test="${info == null}">
        <option value="COMPLETO">Completo</option>
        <option value="INCOMPLETO">Incompleto</option>
        </c:if>
        <c:if test="${info.strEstaAvacInforme == 'COMPLETO'}">
        <option value="COMPLETO" selected="selected">Completo</option>
        <option value="INCOMPLETO">Incompleto</option>
        </c:if>
        <c:if test="${info.strEstaAvacInforme == 'INCOMPLETO'}">
        <option value="COMPLETO" >Completo</option>
        <option value="INCOMPLETO" selected="selected">Incompleto</option>
        </c:if>
        </select>
        <br>
      </td>
      <td bgcolor="#DDDDDD" width="50%" class="TitleColor">
        <a href="Informe.do?operacion=obtenerdatosSoli&codSol=${sessionScope.s_codSol}" target="_blank"><img src="images/btndtsol.JPG" > </a> 
        <br>
      </td>
    </tr>
    <tr >
      <td bgcolor="#DDDDDD" width="12%" nowrap class="LabelColor" style="text-align: right">
        <label for="observacion"> <fmt:message key="cu042.obsInf" /> </label>
      </td>
      <td bgcolor="#DDDDDD" width="50%" class="TitleColor">
        <textarea  id="observacion" name="observacion" cols="45" rows="5">${info.strObservaciones}</textarea>
        <br>
      </td>
      <c:if test="${info == null}">
      <td bgcolor="#DDDDDD" width="50%" class="TitleColor" valign="bottom">
	  	<input type="hidden" name="operacion" value="registrarinforme">
	  	<input type="button" id="btnGuardar" name="btnGuardar" value=<fmt:message key="cu042.guardarInf" /> onclick="validaEnvio(this);">
	  </td>
	  </c:if>
	  <c:if test="${info != null}">
      <td bgcolor="#DDDDDD" width="50%" class="TitleColor" valign="bottom">
	  	<input type="hidden" name="operacion" value="modificarinforme">
	  	<input type="button" id="btnModificar" name="btnModificar" value=<fmt:message key="cu042.modiInf" /> onclick="validaEnvio(this);">
	  </td>
	  </c:if>
    </tr>
    <tr bgcolor="#C0C0C0">
      <td style="text-align: left;" class="LabelColor" colspan="3"> 
        <label for="estlic"> <fmt:message key="cu042.estaApInf" /></label>
      	<select name="estAp" onchange="validaAprobacion();">
      	<c:if test="${info == null}">
      	<option value="APROBADO">Aprobado</option>
      	<option value="APROBADO CON OBSERVACIONES">Aprobado con observaciones</option>
      	<option value="DESAPROBADO">Desaprobado</option>
      	</c:if>
      	<c:if test="${info.strEstadoAprobInforme == 'APROBADO'}">
      	<option value="APROBADO" selected="selected">Aprobado</option>
      	<option value="APROBADO CON OBSERVACIONES">Aprobado con observaciones</option>
      	<option value="DESAPROBADO">Desaprobado</option>
      	</c:if>
      	<c:if test="${info.strEstadoAprobInforme == 'APROBADO CON OBSERVACIONES'}">
      	<option value="APROBADO">Aprobado</option>
      	<option value="APROBADO CON OBSERVACIONES" selected="selected">Aprobado con observaciones</option>
      	<option value="DESAPROBADO">Desaprobado</option>
      	</c:if>
      	<c:if test="${info.strEstadoAprobInforme == 'DESAPROBADO'}">
      	<option value="APROBADO">Aprobado</option>
      	<option value="APROBADO CON OBSERVACIONES">Aprobado con observaciones</option>
      	<option value="DESAPROBADO" selected="selected">Desaprobado</option>
      	</c:if>
      	</select>
      </td>
    </tr>
    <tr bgcolor="#C0C0C0">
      <td colspan="3" class="HeaderColor">
        <fmt:message key="cu042.detaLicen" />   
      </td>
    </tr>
    <tr bgcolor="#DDDDDD" style="vertical-align: top">
      <td style="text-align: right" class="LabelColor" > 
        <label for="uso"> <fmt:message key="cu042.usoEdi" />   </label>
      </td>
      
      	<td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
      		<select name="uso">
      		<c:if test="${sessionScope.l_usosEdif != null}">
      			<c:forEach var="usos" items="${sessionScope.l_usosEdif}">
      				<c:if test="${info.intUsoEdificacion == usos.intCodUsoEdif}">
      				<option value="${usos.intCodUsoEdif}" selected="selected">${usos.strDescripcion}</option>
      				</c:if>
      				<c:if test="${info.intUsoEdificacion != usos.intCodUsoEdif}">
      				<option value="${usos.intCodUsoEdif}">${usos.strDescripcion}</option>
      				</c:if>
      			</c:forEach>
      		</c:if>
      		</select>
      </td>
      
    </tr>
    <tr >
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="ubicacion"><fmt:message key="cu042.ubiEdi" /> </label>
      </td>
      <td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <input type="text" id="ubicacion" name="ubicacion" size="80" value="${info.strUbicacion}">
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="areat"><fmt:message key="cu042.areTerr" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="5%" class="TitleColor">
        <input type="text" id="areat" name="areat" onblur="validarCampos(this);" value="${info.dbAreaTerrenoTotal}">
 		<label for="npisos"><fmt:message key="cu042.numPisos" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="30%" class="TitleColor">
        <select name="npisos" onchange="CambiarFormulario();">
        <c:if test="${info == null}">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        </c:if>
        <c:if test="${info.intNroPisosTotales == '1'}">
        <option value="1" selected="selected">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        </c:if>
        <c:if test="${info.intNroPisosTotales == '2'}">
        <option value="1">1</option>
        <option value="2" selected="selected">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        </c:if>
        <c:if test="${info.intNroPisosTotales == '3'}">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3" selected="selected">3</option>
        <option value="4">4</option>
        </c:if>
        <c:if test="${info.intNroPisosTotales == '4'}">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4" selected="selected">4</option>
        </c:if>
        </select>

      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="areacp"><fmt:message key="cu042.aPrPi" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="5%" class="TitleColor">
        <input type="text" id="areacp" name="areacp" onblur="validarCampos(this);" value="${info.dbAreaConstruida1pm2}">
        <label for="areact"><fmt:message key="cu042.aTrPi" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="30%" class="TitleColor">
        <input type="text" id="areact" name="areact" onblur="validarCampos(this);" value="${info.dbAreaConstruida3pm2}">
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="areacs"><fmt:message key="cu042.aSgPi" /> </label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="5%" class="TitleColor">
        <input type="text" id="areacs" name="areacs" onblur="validarCampos(this);" value="${info.dbAreaConstruida2pm2}">
        <label for="areacc">  <fmt:message key="cu042.aCrPi" /></label>
      </td>
      <td align="left"" bgcolor="#DDDDDD" width="30%" class="TitleColor">
        <input type="text" id="areacc" name="areacc" onblur="validarCampos(this);" value="${info.dbAreaConstruida4pm2}">
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="areatt"><fmt:message key="cu042.aTotTec" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <input type="text" id="areatt" name="areatt" onblur="validarCampos(this);" value="${info.dbAreaTotalTechada}">
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="cca"> <fmt:message key="cu042.codColArq" /> </label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="5%" class="TitleColor">
        <input type="text" id="cca" name="cca" value="${info.strCodColArqui}">
        <label for="arqres"><fmt:message key="cu042.nomArqOb" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="30%" class="TitleColor">
        <input type="text" id="arqres" name="arqres" value="${info.strNombreArquitec}">
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="vigmes"><fmt:message key="cu042.vigeMss" /></label>
      </td>
      <td align="left" bgcolor="#DDDDDD" width="50%" class="TitleColor">
        <select name="vigmes">
        <c:if test="${info == null}">
        <option value="4">4</option>
        <option value="6">6</option>
        <option value="9">9</option>
        <option value="12">12</option>
        </c:if>
        <c:if test="${info.intVigenciaObraMeses == '4'}">
        <option value="4" selected="selected">4</option>
        <option value="6">6</option>
        <option value="9">9</option>
        <option value="12">12</option>
        </c:if>
        <c:if test="${info.intVigenciaObraMeses == '6'}">
        <option value="4">4</option>
        <option value="6" selected="selected">6</option>
        <option value="9">9</option>
        <option value="12">12</option>
        </c:if>
        <c:if test="${info.intVigenciaObraMeses == '9'}">
        <option value="4">4</option>
        <option value="6">6</option>
        <option value="9" selected="selected">9</option>
        <option value="12">12</option>
        </c:if>
        <c:if test="${info.intVigenciaObraMeses == '12'}">
        <option value="4">4</option>
        <option value="6">6</option>
        <option value="9">9</option>
        <option value="12" selected="selected">12</option>
        </c:if>
        </select>
      </td>
      <td valign="middle" align="right" bgcolor="#DDDDDD" width="50%" class="TitleColor">
        <label ><fmt:message key="cu042.opcio" /></label>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
    